package com.xmwzw.catpu;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.bumptech.glide.Glide;
import com.xmwzw.catpu.databinding.ActivityPhotoDetailBinding;

/**
 * @author : wangzw
 * @date : 20-6-1下午3:36
 * @desc :
 */
public class PhotoDetailActivity extends BaseActivity {
    private ActivityPhotoDetailBinding photoDetailBinding;

    @Override
    public int getLayoutId() {
        return R.layout.activity_photo_detail;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        photoDetailBinding = getBaseViewBinding();

        Glide.with(this).load(getIntent().getStringExtra("url"))
                .into(photoDetailBinding.photoView);
        photoDetailBinding.tvBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });



    }
}
